package com.edu.controller.front.pay;

import com.edu.utils.ParamFormat;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author ZCN
 * @version 1.0
 * @date 2021/11/25 10:53
 */
@WebServlet("/front/pay/return")
public class ReturnServlet extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        try {
            ParamFormat.format(req, resp);
            //跳转到订单查询页面
            resp.sendRedirect("/front/querymyorder");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
